window._STATICURLS=["js.zohocdn.com","css.zohocdn.com","https://us4-files.zohopublic.com","salesiq.zohopublic.com","salesiq.zoho.com","salesiq.zohopublic.com"];NEW_STATIC_URLS=[["https://js.zohocdn.com/salesiq/RESOURCE_BUNDLES/embedcw/js/embed.LpPAMt61fxSphyi6_cbMa8Qkjbi7aJEFn1gm6FcpMWj5d-oLtsCqWk-4BN1YxCvc.js","https://js.zohocdn.com/salesiq/RESOURCE_BUNDLES/embedcw/js/chunk-vendors.6B_hUyu0L4M7ZLFGC5MfMzm6E0xrq_UezAt_59bon9WOnev9t6msfIJS92JENLC5.js","https://js.zohocdn.com/salesiq/RESOURCE_BUNDLES/embedcw/js/embed~rtl.NEB6cEel6mLzNFoLu29esvk0AGubqJQvdchT-wrMkSMdzTM-3YYALSI9sejBnBhJ.js"],["https://js.zohocdn.com/salesiq/RESOURCE_BUNDLES/embedcw/js/embed~modern.k43TF3FMi2sIP3nwb_DZuVN60EK_8uMJ_QlJVv2daDmA5ZMIO9Kh9qEsuptbha47.js","https://js.zohocdn.com/salesiq/RESOURCE_BUNDLES/embedcw/js/chunk-vendors~modern.x1ldsJu61RC-5eAXjlVUAYHJgd3Aa0lXAyepiMq49zHZNvIlj-d86SIoKWQaMyR3.js","https://js.zohocdn.com/salesiq/RESOURCE_BUNDLES/embedcw/js/embed~modern~rtl.LMNrOuG4jpKs0myph6KVzAM9iB_zbv0pWj83BzFDO91RJRstd-sO2twkxFGVKkn3.js"],["https://css.zohocdn.com/salesiq/RESOURCE_BUNDLES/embedcw/css/embed.O_SrvgUtsUR57Hx2-j2hRwpNEBRGxaLXbsZVqIHYB7PbKy9oqehJ36ajKHJenRzC.css","https://css.zohocdn.com/salesiq/RESOURCE_BUNDLES/embedcw/css/embed~rtl.ll9HQkEMAWMRNfnLYhBnPq1R9wvRDuV9KGgEU8JXvM5o-jALsE7pph5gRKYXRV3l.css"]];_STATIC_URL='https://static.zohocdn.com';_NEW_MEDIARTC_URLS=["https://js.zohocdn.com/salesiq/js/embedmedia-rtc-new_XDmCRW5ni_w-oDLahIx7aRUpZ0rkMLytk4C9bBK4VoYpL-PA4Z6AAc9R1hvcm9tr_.js","https://js.zohocdn.com/salesiq/thirdparty/js/jquery.min.js"];var $ZSIQLSDB=$ZSIQLSDB||function(){var t=function(t){try{return window[t].setItem("test","1"),window[t].removeItem("test"),!!window[t]}catch(t){return!1}},e=t("sessionStorage"),o=t("localStorage");return{set:function(e,o,i){if($ZSIQLSDB.isLocalStorageAvail())try{this.storeInLocalStorage(e,o,i)}catch(t){$ZSIQCookie.set(e,$ZSIQLSDB.toString(o),i)}else $ZSIQCookie.set(e,$ZSIQLSDB.toString(o),i)},storeInLocalStorage:function(t,e,o){var i=JSON.parse(localStorage.siqlsdb||"{}");o&&(e.ttl=o,e.time=(new Date).getTime()),e=$ZSIQLSDB.toString(e),i[t]=e,localStorage.siqlsdb=JSON.stringify(i)},isLocalStorageAvail:function(){return o},get:function(t){return $ZSIQLSDB.isLocalStorageAvail()&&$ZSIQLSDB.getFromLocalStorage(t)||$ZSIQUtil.parseToJSON($ZSIQCookie.get(t))},isSessionStorageAvail:function(){return e},storeInSession:function(t,e){if(!this.isSessionStorageAvail())return!1;var o=$ZSIQUtil.parseToJSON(sessionStorage.utsdb||"{}");return window._ZSIQ_RESET_ESSENTIAL&&(o=$ZSIQUtil.parseToJSON(o)),o[t]=e,sessionStorage.utsdb=JSON.stringify(o),!0},getFromSession:function(t){if(this.isSessionStorageAvail())return $ZSIQUtil.parseToJSON(sessionStorage.utsdb||"{}")[t]},getFromLocalStorage:function(e){var o=$ZSIQUtil.parseToJSON(localStorage.siqlsdb||"{}")[e];if(!o)return null;if("ZLDPERSONALIZE"===e)return o;try{if((o=$ZSIQUtil.parseToJSON(o)).ttl&&o.ttl+o.time<(new Date).getTime())return $ZSIQLSDB.remove(e),null}catch(t){LSDebugger.postDebugInfo("Value: "+o+"Key"+e,null,null,!0)}return o},remove:function(e,t){var o=t&&$zohosq._domain;if($ZSIQLSDB.isLocalStorageAvail()&&!o)try{var i=$ZSIQUtil.parseToJSON(localStorage.siqlsdb||"{}");i[e]&&delete i[e],localStorage.siqlsdb=JSON.stringify(i)}catch(t){$ZSIQCookie.remove(e)}else $ZSIQCookie.remove(e,$zohosq._domain)},removeAllFAQValuesFromSession:function(t){if(this.isSessionStorageAvail())try{var e=JSON.parse(sessionStorage.utsdb||"{}");for(var t in e)e.hasOwnProperty(t)&&(t.startsWith("article_")||t.startsWith("faq_"))&&delete e[t];sessionStorage.utsdb=JSON.stringify(e)}catch(t){}},removeSessionStore:function(t){if(this.isSessionStorageAvail())try{var e=JSON.parse(sessionStorage.utsdb||"{}");e[t]&&(delete e[t],sessionStorage.utsdb=JSON.stringify(e))}catch(t){}},toString:function(e){if(!e)return e;if("string"==typeof e)return e;try{return t=e,Object.toJSON?Object.toJSON(t):JSON.stringify(t)}catch(t){var o,i=[];for(var r in e)o=e[r].replace('"','\\"'),i.push('"'+r+'":"'+o+'"');return"{"+i+"}"}var t},removeAllStorage:function(){for(var t=document.cookie.split("; "),e=$ZSIQUtil.getkeylist(),o=0;o"+i+""})}catch(e){}return e},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},checkAndGetParsedVal:function(e){var t=$ZSIQUtil.parseToJSON(e);return"object"==typeof t||"boolean"==typeof t?t:e},formWidgetObject:function(e){var t={};for(var i in e)t[i]=$ZSIQUtil.checkAndGetParsedVal(e[i]);return $ZSIQAnalytics=t.analytics,$ZSIQAutopick=$zv.autopick||t.autopick,_ZSIQ.brandname=t.brandname,t},formEmbedObject:function(e){var t={};for(var i in e)t[i]=$ZSIQUtil.checkAndGetParsedVal(e[i]);return t},getObjectKeys:function(e){if(Object.keys)return Object.keys(e);var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t},getGDPRBanner:function(e,t){var i,n=t.trackingprivacystatement?t.trackingprivacystatement:e.i18nkeys["gdpr.banner.notify"],o=e.i18nkeys["gdpr.banner.button.ok"],r=e.i18nkeys["gdpr.banner.button.donottrack"],a=(t.trackingprivacystatement?t.trackingprivacystatement:e.i18nkeys["gdpr.banner.donottrack"],e.i18nkeys["gdpr.banner.learnmore"]),s=!((!(i=$UTSHandler.getAPIValuesForUTS()).tracking||"off"!=i.tracking)&&e.istracking),c="",d=e.i18nkeys["gdpr.banner.preferences"],l=e.i18nkeys["gdpr.banner.cookie.acceptall"];if((i=$ZSIQUtil.getAPIValues()).trackbannerobj){var u=i.trackbannerobj;if(n=u.description&&0!=u.description.trim().length?u.description:n,o=u.acceptbutton&&0!=u.acceptbutton.trim().length?u.acceptbutton:o,r=u.declinebutton&&0!=u.declinebutton.trim().length?u.declinebutton:r,u.policytextandlink){var g=u.policytextandlink;a=g.text&&0!=g.text.trim().length?g.text:a,t.cookiepolicyurl=g.link&&0!=g.link.trim().length&&$ZSIQUtil.isValidURL(g.link)?g.link:t.cookiepolicyurl}}t.cookiepolicyurl&&(c=""+$ZSIQUtil.getEncodedText(a)+""),n=$ZSIQUtil.getEncodedText(n);var p=$ZSIQWidget.getEmbedObject().pinfo,f=p.cookiePreference;if(p.cookieSegregation){if("custom"==f)return"";if($ZSIQWidget.getEmbedObject().centralized_cookie_handler_enabled)return $ZSIQUtil.appendCookieBannerJS(function(){$ZSIQUtil.handleOneCookie(e,t)}),"";if(f&&"default"==f)switch(JSON.parse(t.trackingprivacyconfig)){case 1:return"
"+n+c+"
"+o+"
";case 2:return"
"+n+c+"
"+l+"
"+d+"
"}}else switch(JSON.parse(t.trackingprivacyconfig)){case 1:return"
"+n+c+"
"+o+"
";case 2:return"
"+n+c+"
"+o+"
"+(s?"":"
"+r+"
")+"
"}},handleOneCookie:function(e,t){var i=ZohoCookie();if(i.isCookieSet())$ZSIQUtil.updateTrackingStatus(i.getSelectedCookies());else{var n=e.i18nkeys,o=$ZSIQWidget.getWidgetObject().i18nChatwindowKeys,r=JSON.parse(t.trackingprivacyconfig),a=[],s=o["cookie.learnmore"],c="http_cookie",d=t.cookiepolicyurl,l=$ZSIQUtil.getEncodedText(t.trackingprivacystatement)||n["gdpr.banner.notify"],u=n["gdpr.banner.learnmore"],g=n["gdpr.banner.cookie.acceptall"],p=n["gdpr.banner.preferences"],f=n["gdpr.banner.button.ok"],S=$zv.trackbannerobj;if(S){var h=S.policytextandlink||{};l=$ZSIQUtil.getEncodedText(S.description)||l,u=$ZSIQUtil.getEncodedText(h.text)||u,d=h.link||d;var m=$ZSIQUtil.getEncodedText(S.acceptbutton);g=m||g,f=m||f,p=$ZSIQUtil.getEncodedText(S.preferencebutton)||p}d&&(d=$ZSIQUtil.getURLProtocol(d)),1===r?a.push({title:f}):2===r&&a.push({title:g,style:{"background-color":"#fff",color:"#333"}},{title:p}),i.showConsent({title:l,linkTitle:u,linkUrl:d,buttons:a,tableButtons:[{title:"Decline"},{title:"Accept"}],header:{title:o["cookie.your.preference"],description:o["cookie.your.preference.desc"],linkTitle:o["cookie.policy"],openInNewTab:!0,linkUrl:d||"https://www.zoho.com/salesiq/cookies-policy.html"},cookie_types:{essential:{title:o["cookie.essential"],description:o["cookie.essential.desc"],linkTitle:s,meta:[{name:"'JSESSIONID'",expiry:"When the browsing session ends",purpose:"This cookie is generated by servlet containers like Tomcat and used for session management for the HTTP protocol",url:c},{name:"'LS_CSRF_TOKEN'",expiry:"When the browsing session ends",purpose:"This cookie is used for security purposes in order to avoid Cross-Site Request Forgery, (CSRF) for the AJAX calls made by the visitor",url:c},{name:"'gdpr_'+<@screenname@>+'__donottrack'",expiry:"1 month",purpose:"This cookie stores the GDPR consent from the visitor - enable/disable tracking",url:c},{name:"e3de1f7d42(random checksum)",expiry:"When the browsing session ends",purpose:"This cookie is used for internal load balancing of SalesIQ servers",url:c},{name:"'fbpgsr_'+<@lsid@>",expiry:"Until cleared",purpose:"Used in the Facebook app to authenticate the SalesIQ API request",url:c},{name:"uesign",expiry:"1 Month",purpose:"This cookie is used to manage the security of the applications.",url:c}]},performance:{title:o["cookie.performance"],description:o["cookie.performance.desc"],linkTitle:s,meta:[{name:"isiframeenabled",expiry:"1 day",purpose:"This cookie is set when the Live Chat feature is disabled by proactive chats/trigger/JSAPI",url:c},{name:"'zld'+<@lsid@>+'Article_'+<@article_id@>",expiry:"1 day",purpose:"This cookie stores if an article/FAQ is liked or not by the visitor",url:c},{name:"'ZLD'+<@appid@>+'WAITING'",expiry:"Embed waiting time",purpose:"This cookie stores the waiting time of the chat time details for a chat",url:c},{name:"'ZLD'+<@appid@>+'WTIME'",expiry:"Embed waiting time",purpose:"This cookie stores the remaining waiting time details for a chat",url:c},{name:"cdn_status",expiry:"2 days",purpose:"This cookie stores the cdn status for getting the static files",url:c},{name:"<@chatid@>+'_translate'",expiry:"1 day",purpose:"This cookie stores whether translation is enabled or not",url:c},{name:"'gdpr_'+<@screenname@>+'_trackingconfig'",expiry:"1 Month",purpose:"This cookie stores GDPR consent configured in portal side to handle the visitor end widget accordingly with consent banners",url:c}]},analytics:{title:o["cookie.analytics"],description:o["cookie.analytics.desc"],linkTitle:s,meta:[{name:"<@screenname@>+'-'_zldp'",expiry:"2 years",purpose:"This cookie identifies the unique visitors for the website",url:c},{name:"<@screenname@>+'-'_zldt'",expiry:"1 day",purpose:"This cookie identifies unique visits for a visitor in the website",url:c},{name:"<@screenname@>+'-'_siqid'",expiry:"2 years",purpose:"This cookie helps you track users across all domains",url:c},{name:"<@screenname@>+'-'_uuid'",expiry:"2 years",purpose:"This cookie provides user id needed in REST API to get the data of the current user.",url:c},{name:"<@screenname@>+'-'mc_cid'",expiry:"1 day",purpose:"This cookie tracks Mailchimp details about the visitor via campaign id & member email's unique id",url:c},{name:"<@screenname@>+'-'mc_eid'",expiry:"1 day",purpose:"This cookie tracks Mailchimp details about the visitor via unique id & member email's unique id",url:c},{name:"_zldvfp",expiry:"6 months",purpose:"Used to identify visitors referred from email campaigns",url:c},{name:"'ZLD'+<@appid@>",expiry:"1 week",purpose:"This cookie stores the Live Chat attender details and visitor details",url:c},{name:"'ZLD'+<@lsid@>+'avuid'",expiry:"1 week",purpose:"This cookie stores the avuid unique id to denote a visitor",url:c},{name:"'ZLDTRIGGER'+<@appid@>",expiry:"1 week",purpose:"This cookie stores the trigger details when the visitor is contacted",url:c},{name:"ZLDPERSONALIZE",expiry:"180 seconds",purpose:"This cookie stores attender ID in cookie for personalized chat",url:c},{name:"'ZLD'+<@lsid@>+'tabowner'",expiry:"180 seconds",purpose:"This cookie stores WMS session ID",url:c},{name:"<@avuid@>+'_accesstime'",expiry:"1 day",purpose:"This cookie stores the last fetched conversation's end time",url:c}]}},preferenceButtons:[{title:o["cookie.use.essential"]},{title:"Accept"}],handler:function(e,t){$ZSIQUtil.updateTrackingStatus(t.selected_cookies)}})}},getGDPRBannerCookieKey:function(e){return"gdpr_"+(e=e||$ZSIQWidget.getWidgetObject().screenname)},updateCookieForTracking:function(e,t){var i=$ZSIQUtil.getGDPRBannerCookieKey(),n=($ZSIQUtil.getGDPRBannerCookieKey(),$ZSIQUtil.getAPIValues()||{});i+="__donottrack";$ZSIQWidget.getEmbedObject().cookie_optimization;var o=function(){handleIframeFunction(function(e){e.$Support.handleDomainStorage("updatecorsdata","cookie")})},r=$ZSIQChat.getWidgetData().embedobj.einfo.embedid;switch($ZSIQLSDB.storeInLocalStorage("ZSIQ"+r+"-cookie_config",$ZSIQUtil.cookieConfig),e){case 0:$ZSIQNotifyCookie.handleGotit(),$ZSIQCookie.set(i,0,2592e6,!0),$ZSIQUtil.hideGDPRBanner(),"on"==n.reset&&$ZSIQUtil.checkTrackingEnabled()&&$ZNotifyTracking(1,"on"),$UTSHandler.init(!0),o();break;case 1:$ZSIQNotifyCookie.handleDNT(),$ZSIQCookie.set(i,1,2592e6,!0),$ZNotifyTracking(1,"off"),$ZSIQUtil.hideGDPRBanner(),o()}},checkGDPRBannerStatus:function(e,t,i){var n=i.pinfo.pinfo.trackingprivacyconfig,o=$ZSIQUtil.getGDPRBannerCookieKey(t);switch(e){case 0:return 0!=$ZSIQCookie.get(o+"__donottrack").length;case 1:return 0==$ZSIQCookie.get(o+"__donottrack");case 2:return 1==$ZSIQCookie.get(o+"__donottrack")&&2==n}return!1},hideGDPRBanner:function(){var e=document.getElementById("gdprbanner");e&&$ZSIQWidgetUI.addClass(e,"gdprbanner_slide")},getGDPRPendingStatus:function(e,t,i){var n=!1;try{if(t.pinfo&&t.pinfo.pinfo){var o=t.pinfo.pinfo,r=JSON.parse(o.isgdprenabled),a=1==e.widgetobj.isgdprenabled,s=o.trackingprivacyconfig;r&&0!=s&&!$ZSIQUtil.checkGDPRBannerStatus(0,i,t)&&a&&(n=!0)}}catch(e){}return n},isValidURL:function(e){var t=new RegExp(/^(((http|https):\/\/(www.){0,1})|www.){1}[a-zA-Z0-9]+[-a-zA-Z0-9@:/%_+.~#?&/=]*[^.]$/);return void 0!==e&&t.test(e)},hyperLinksSubString:function(e,t,i){try{if(-1!==e.indexOf(t)&&0!=i.length){var n=e.length,o=t.length,r=e.substring(0,e.indexOf(t)),a=e.substring(e.indexOf(t),e.indexOf(t)+o),s=e.substring(e.indexOf(t)+o,n);e=r+(a=""+a+"")+s}else 0!=i.length&&(e+=" "+t+"")}catch(e){}return e},stringify:function(e){try{return Object.toJSON?Object.toJSON(e):JSON.stringify(e)}catch(e){}},getNavigationObj:function(e){var t=e?e.document:null,i="";if(s&&c&&(i=c),t&&t.location&&t.location.protocol){if(-1==e.location.protocol.indexOf("http")&&e.parent&&e.parent!=e)return $ZSIQUtil.getNavigationObj(e.parent);var n;(n={}).current_page=$zohosq.visitor.cpage()||t.location.href.substring(0,3072),n.page_title=$zohosq.visitor.pagetitle()||i||t.title.substring(0,3072),n.referer=$zohosq.visitor.referer()||t.referrer.substring(0,3072);try{n.lsid=$ZSIQWidget.getWidgetObject().lsid}catch(e){}return n}(n={}).current_page=$zohosq.visitor.cpage()||document.location.href.substring(0,3072),n.page_title=$zohosq.visitor.pagetitle()||i||document.title.substring(0,3072),n.referer=$zohosq.visitor.referer()||document.referrer.substring(0,3072);try{n.lsid=$ZSIQWidget.getWidgetObject().lsid}catch(e){}return n},getAvuid:function(){return"undefined"==typeof $ZSIQWidget||window._ZSIQ_RESET_ESSENTIAL?$ZSIQLSDB.get("ZLD"+$ZSIQChat.getWidgetData().widgetobj.lsid+"avuid"):($ZSIQWidget.avuid||($ZSIQWidget.avuid=$ZSIQChat.avuidval||$ZSIQLSDB.get("ZLD"+$ZSIQChat.getWidgetData().widgetobj.lsid+"avuid")),$ZSIQWidget.avuid)},getLiveLSIDFromStorage:function(e){var t=$ZSIQUtil.getConfigFromStorage();try{return"rawid"==e?t.widgetobj.lsid:t.embedobj.einfo.embedid}catch(e){return""}},checkStoredIdAndRemoveStorage:function(e){var t=$ZSIQUtil.getLiveLSIDFromStorage("rawid"),i=$ZSIQLSDB.get("ZLD"+$zohosq.widgetcode+"cvuid"),n=$ZSIQUtil.getConfigFromStorage();if(n&&n.embedobj&&n.embedobj.conversation_newflow_enabled&&i&&i!=e){var o=$ZSIQUtil.getLiveLSIDFromStorage();if(!o)return;var r=["ZLD"+o,"ZLD"+o+"WAITING","ZLDTRIGGER"+o,"ZLD"+o+"QUEUEINGCHATS","ZLD"+o+"WTIME"],a=r.length;$ZSIQLSDB.removeSessionStore($ZSIQLSDB.get("ZLD"+t+"avuid")+"_formcontextinitiated"),$ZSIQLSDB.removeSessionStore("ZLD"+o+"lastview");for(var s=0;s").replace(/</g,"<").replace(/&/g,"&").replace(///g,"/")).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"))}catch(e){}return e},bindEventsCookieBanner:function(){var e=document.getElementById("gdprbanner");e&&e.addEventListener("click",function(e){var t=e.target,i=t.getAttribute("docclick");if("updateCookieForTracking"==i)return $ZSIQUtil.cookieConfig={isFunctionality:!0,isAnalytics:!0},void $ZSIQUtil.updateCookieForTracking(JSON.parse(t.getAttribute("type")),t.getAttribute("config"));"showCookiePreferences"!=i||$ZSIQNotifyCookie.populateUI()})},getUrlParamObj:function(e){var t={};if(e){for(var i=(e.split("?")[1]||"").split("&"),n=0;n "+e.message+" stack -> "+e.stack+" name -> "+e.name+" missedseq -> "+t)}if(e){var n=g.seqmsgdb.getFromDB()[e];if(n){var i=n.data;g.notifier.sendData(i,void 0,!1),g.seqmsg.clear(e)}setTimeout(function(){g.seqmsg.asyncResend(arguments[0])},0,t)}}},g.seqmsg.clear=function(e){var t=g.seqmsgdb.getFromDB();e?delete t[e]:t={},g.seqmsgdb.updateInDB(t,g.seqmsg.maxexpirytime)},g.seqmsgdb={},g.seqmsgdb.getFromDB=function(e){var t=$ZSIQUTS.getFromSession("seq_msgs")||"{}";return t=JSON.parse(t),e?t[e]||{}:t},g.seqmsgdb.getSequenceNumber=function(e){var t,n=g.seqmsgdb.getFromDB();for(var i in n)i=parseInt(i),t||(t=i),e?t3*g.moninterval&&("hidden"!=P.cur_st?L||M?!1===L&&g.net.reconnect():g.net.reconnect():V.logFine("skipped by tab status")),g.util.dbconsistencychecked||g.net.disabledbyserver||g.util.checkConsistency()}finally{g.net.scheduleMonitor()}},scheduleMonitor:function(){V.logFine("inside scheduleMonitor"),clearTimeout(g.net.monitortimer),g.net.monitortimer=setTimeout(function(){g.net.connMonitor()},g.moninterval)},reconnect:function(){V.logFine("inside reconnect - $ZUserStatus.isactive : "+K.isactive+" - "+P.cur_st+" - "+g.net.disabledbyserver),g.net.disabledbyserver||!K.isactive&&null!=K.isactive||"hidden"==P.cur_st||(K.init(),g.net.disableConnection(),g.init())},scheduleFallback:function(){clearTimeout(g.net.fallbacktimer),g.net.fallbacktimer=setTimeout(g.net.fallbackToCR,2e4)},unscheduleFallback:function(){clearTimeout(g.net.fallbacktimer)},fallbackToCR:function(){G._WEBSOCK.readyState===G.readystate.OPEN&&G.initialized||(G.disableConnection(),X.init())},handleUTSEvent:function(e){var t=e.d,n=0;switch(e.o){case 0:B=t._zldp||B,W=t._zldt||$ZSIQUTS.get("_zldt"),G.setInitialized(),g.net.writeenabled=!0,g.seqmsg.isconnectionmade=!0,g.notifier.notifyQueued(),$UTSHandler.setUVID(W),$UTSHandler.setUUID(t.uuid);try{n=$ZSIQUTSAction.handle(t.triggers)}catch(e){g.notifier.doLog("Exception in triggering message - "+e.message+" stack - "+e.stack+" name:"+e.name)}A=!0,t.isnewconnection=!0,j.handleConnect(t),$ZSIQUTSAction.includeBeforeSubmit(t),y.customaction&&g.notifier.updateCustomAction(y.customaction),t.sseqno&&g.seqmsg.init(parseInt(t.sseqno)),g.notifier.identifyByCampaign(),g.notifier.doLog(" isLocalstorage: "+C()+" isSessionStorage: "+k()+" Tab status - "+P.latime+" - "+P.cur_st),a=t.name,s=t.token,n/1e3<5&&t.triggers&&"object"==typeof $ZSIQChatWindow&&$ZSIQChatWindow.populateIframe(),$ZSIQUTSAction.handleInfo(t);break;case 1:G.ping(),B=t._zldp,W=t._zldt,U=t.sid,q()&&$ZSIQUTS.storeInSession("sid",U),$UTSHandler.setUUID(t.uuid),$UTSHandler.setUVID(W),g.net.writeenabled=!0,g.seqmsg.isconnectionmade=!0,g.notifier.notifyQueued(),A=!0,j.handleConnect(t),$ZSIQUTSAction.handle(t.triggers),$ZSIQUTSAction.includeBeforeSubmit(t),t.sseqno&&g.seqmsg.init(parseInt(t.sseqno)),$UTSHandler.isTrackedfrommailchimp()||g.notifier.identifyByCampaign(),a=t.name,s=t.token,$ZSIQUTSAction.handleInfo(t);break;case 2:B=t._zldp,W=t._zldt,U=t.sid;try{B=B?B.trim():B,W=W?W.trim():W,U=U?U.trim():U,$ZSIQUTS.store("_zldp",B,I(63072e6)),$ZSIQUTS.store("_zldt",W,I(864e5)),q()&&$ZSIQUTS.storeInSession("sid",U)}catch(e){}A=!0,g.util.checkMode(c)||g.notifier.acknowledge();break;case 8:g.net.disableConnection(),B=t._zldp,W=t._zldt,U=t.sid;try{B=B?B.trim():B,W=W?W.trim():W,U=U?U.trim():U,$ZSIQUTS.store("_zldp",B,I(63072e6)),$ZSIQUTS.store("_zldt",W,I(864e5)),q()&&$ZSIQUTS.storeInSession("sid",U)}catch(e){}A=!0,G.init();break;case 3:$ZSIQUTSAction.handle(t.triggers);break;case 4:if(g.util.checkMode(c))return;if(t&&t.seqno)return void g.seqmsg.clear(t.seqno);if(t&&t.sseqno){if(g.seqmsg.updateServerUpdatedcount(parseInt(t.sseqno)),t.missedseq){var i=JSON.parse(t.missedseq);g.seqmsg.asyncResend(i)}return}break;case 100:t.uvid=$ZSIQUTS.get("_zldt")||W,$UTSHandler.handleTrackChat(t);break;case 101:$ZSIQUTS.handleCustomAction(t);break;case 102:var o=t.triggers;!t.triggers&&t.botTriggers&&"botTriggers"==t.module&&(o=t),(n=$ZSIQUTSAction.handle(o))/1e3<5&&"object"==typeof $ZSIQChatWindow&&$ZSIQChatWindow.populateIframe();break;case-1:if(g.util.checkMode(c))return;t&&t.issidclear&&($ZSIQUTS.removeFromSession("sid"),U="");var r=t&&t.duration||"";g.net.disableConnection(r),g.net.disabledbyserver=!0;break;case 11:$ZSIQUTSAction.handleInfo(t)}},handleResponse:function(e,t){if(M=!0,e)if((e=JSON.parse(e))&&e.seqno)g.seqmsg.clear(e.seqno);else if(e&&e.sseqno){if(g.seqmsg.updateServerUpdatedcount(parseInt(e.sseqno)),e.missedseq){var n=JSON.parse(e.missedseq);g.seqmsg.asyncResend(n)}}else if(!t&&h.SharedWorker&&V.sendResponseToOthers(e),D(e))for(var i=0;ig.notifier.maxsize||(g.notifier.removeIfExists(e),g.notifier.qdata.push(e))},g.notifier.removeIfExists=function(e){try{for(var t=0;t "+G.initialized+" WS.id -> "+G.id),g.net.connAlive(),x=0,g.net.requestSuccess(),G.initialized||g.net.scheduleFallback();var t=e.data;if("//1//"!==t){if(""!==t){if(","===t)return V.logFine("data = ,"),void G.init();g.net.handleResponse(t),clearTimeout(G.pingTimer),G.pingTimer=setTimeout(G.pingcb,1e4)}}else G.setInitialized()},pingcb:function(){if(15e3 "+JSON.stringify(e)),V.logObj(e)},onClose:function(e){if(V.logFine("inside ws.close - evt -> "+JSON.stringify(e)),g.util.checkMode(r)){x++,g.net.goOffline(),clearTimeout(G.recontimer);var t=(new Date).getTime()%20;G.recontimer=setTimeout(function(){G.bind()},1e3*t)}},bind:function(){!0!==L&&g.util.checkMode(r)&&(G._WEBSOCK.readyState!==G.readystate.CONNECTING&&G._WEBSOCK.readyState!==G.readystate.OPEN||(V.logFine("websocet closed - WS._WEBSOCK.readyState - "+G._WEBSOCK.readyState),G._WEBSOCK.close(),g.seqmsg.isconnectionmade=!1),clearTimeout(G.recontimer),V.logFine("inside ws.bind"),G.init(),g.net.connAlive())},disableConnection:function(){try{V.logFine("websocket closed - by disableconnection"),G._WEBSOCK.close(),g.seqmsg.isconnectionmade=!1}catch(e){}},ping:function(){g.util.checkMode(r)&&(G.initialized=!1,G._WEBSOCK.readyState===G.readystate.OPEN&&G._WEBSOCK.send("--1--"))},setInitialized:function(){g.util.checkMode(r)&&(G.initialized=!0,g.net.unscheduleFallback())}},X={lastevttime:0,reqobjs:[],fullTripTimer:null,respTimer:null,ajax:function(e){var t,n=e.type||"GET",i=e.async||!0,o=e.onSuccess||function(){},r=e.onFailure||function(){},a=e.url,s=e.options||{};if("withCredentials"in(t=new XMLHttpRequest)){(t=new XMLHttpRequest).open(n,a,i),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"),s.ajaxreq=t;try{t.onreadystatechange=function(){4===t.readyState&&(200===t.status?o(s):r(s))}}catch(e){throw clearTimeout(X.respTimer),X.respTimer=setTimeout(function(){X.bind()},1e4),x++,g.net.goOffline(),e}}else if("undefined"!=typeof XDomainRequest){(t=new XDomainRequest).open("GET",a),s.ajaxreq=t;try{t.onprogress=function(){},t.ontimeout=function(){},t.onload=function(){o(s)},t.onerror=function(){r(s)}}catch(e){throw clearTimeout(X.respTimer),X.respTimer=setTimeout(function(){X.bind()},1e4),x++,g.net.goOffline(),e}}return setTimeout(function(){t.send(e.qp)},0),t},sendReq:function(e,t){var n=(new Date).getTime(),i={url:e,qp:t,type:"POST",onSuccess:function(e){var t=e.evtstarttime,n=e.ajaxreq.responseText;if(!(4e4>16&255,i>>8&255,255&i]}else h=h.replace("rgb(","").replace(")","").split(",");for(var n=0;n+'Article_'+<@article_id@>",ttl:"1 day",purpose:"This cookie stores if an article/FAQ is liked or not by the visitor",type:e},{name:"'ZLD'+<@appid@>+'WAITING'",ttl:"Embed waiting time",purpose:"This cookie stores the waiting time of the chat time details for a chat",type:e},{name:"'ZLD'+<@appid@>+'WTIME'",ttl:"Embed waiting time",purpose:"This cookie stores the remaining waiting time details for a chat",type:e},{name:"cdn_status",ttl:"2 days",purpose:"This cookie stores the cdn status for getting the static files",type:e},{name:"<@chatid@>+'_translate'",ttl:"1 day",purpose:"This cookie stores whether translation is enabled or not",type:e},{name:"'gdpr_'+<@screenname@>+'_trackingconfig'",ttl:"1 Month",purpose:"This cookie stores GDPR consent configured in portal side to handle the visitor end widget accordingly with consent banners",type:e},{name:"'JSESSIONID'",ttl:"When the browsing session ends",purpose:"This cookie is generated by servlet containers like Tomcat and used for session management for the HTTP protocol",type:c},{name:"'LS_CSRF_TOKEN'",ttl:"When the browsing session ends",purpose:"This cookie is used for security purposes in order to avoid Cross-Site Request Forgery, (CSRF) for the AJAX calls made by the visitor",type:c},{name:"'gdpr_'+<@screenname@>+'__donottrack'",ttl:"1 month",purpose:"This cookie stores the GDPR consent from the visitor - enable/disable tracking",type:c},{name:"e3de1f7d42(random checksum)",ttl:"When the browsing session ends",purpose:"This cookie is used for internal load balancing of SalesIQ servers",type:c},{name:"'fbpgsr_'+<@lsid@>",ttl:"Until cleared",purpose:"Used in the Facebook app to authenticate the SalesIQ API request",type:c},{name:"uesign",ttl:"1 Month",purpose:"This cookie is used to manage the security of the applications.",type:c},{name:"<@screenname@>+'-'_zldp'",ttl:"2 years",purpose:"This cookie identifies the unique visitors for the website",type:i},{name:"<@screenname@>+'-'_zldt'",ttl:"1 day",purpose:"This cookie identifies unique visits for a visitor in the website",type:i},{name:"<@screenname@>+'-'_siqid'",ttl:"2 years",purpose:"This cookie helps you track users across all domains",type:i},{name:"<@screenname@>+'-'_uuid'",ttl:"2 years",purpose:"This cookie provides user id needed in REST API to get the data of the current user.",type:i},{name:"<@screenname@>+'-'mc_cid'",ttl:"1 day",purpose:"This cookie tracks Mailchimp details about the visitor via campaign id & member email's unique id",type:i},{name:"<@screenname@>+'-'mc_eid'",ttl:"1 day",purpose:"This cookie tracks Mailchimp details about the visitor via unique id & member email's unique id",type:i},{name:"_zldvfp",ttl:"6 months",purpose:"Used to identify visitors referred from email campaigns",type:i},{name:"'ZLD'+<@appid@>",ttl:"1 week",purpose:"This cookie stores the Live Chat attender details and visitor details",type:i},{name:"'ZLD'+<@lsid@>+'avuid'",ttl:"1 week",purpose:"This cookie stores the avuid unique id to denote a visitor",type:i},{name:"'ZLDTRIGGER'+<@appid@>",ttl:"1 week",purpose:"This cookie stores the trigger details when the visitor is contacted",type:i},{name:"ZLDPERSONALIZE",ttl:"180 seconds",purpose:"This cookie stores attender ID in cookie for personalized chat",type:i},{name:"'ZLD'+<@lsid@>+'tabowner'",ttl:"180 seconds",purpose:"This cookie stores WMS session ID",type:i},{name:"<@avuid@>+'_accesstime'",ttl:"1 day",purpose:"This cookie stores the last fetched conversation's end time",type:i}],d={functionality:[],analytics:[],strictlynecessary:[]},p=function(){o("zsiqfunctionalitychbox").checked=n.isFunctionality,o("zsiqanalyticschbox").checked=n.isAnalytics},u=function(){var i=s.learnmore,e=$ZSIQWidget.getEmbedObject().pinfo.pinfo.cookiepolicyurl;return e=e?$ZSIQUtil.getURLProtocol(e):"https://www.zoho.com/salesiq/cookies-policy.html",'
'+r["cookie.your.preference"]+'
'+r["cookie.your.preference.desc"]+''+r["cookie.policy"]+'.
"},y=function(){w("zsiqimagepreview",function(i){"zsiqclose"===i.target.getAttribute("docclick")&&v(i)}),w("functionalitydetails",function(){f(e)}),w("analyticsdetails",function(){f(i)}),w(c,function(){f(c)}),w("confirmmychoice",T),w("zsiqacceptall",S),w("zsiqclose",v),w("zsiqfunctionalitychbox",z),w("zsiqanalyticschbox",z)},v=function(i){t="",$ZSIQUtil.cookieConfig={isFunctionality:!1,isAnalytics:!1},$ZSIQChatWindow.closeImagePreview(i,!0),$ZSIQUtil.bindEventsCookieBanner()},f=function(i){var e=i===c?"hide-footer":"",t='
'+h(i)+'
';o("zsiqimagepreview").innerHTML=t,m()},h=function(i){return'
'+s[i].title+'
'+s[i].subtitle+'
'+_(l,i)+"
"},m=function(){w("acpt-cookie",g),w("decl-cookie",b),w("close-cookie",function(i){t="",$ZSIQChatWindow.closeImagePreview(i,!0),$ZSIQUtil.bindEventsCookieBanner()}),w("zsiq-larrow",q)},k=function(i){return i===c?"":''},z=function(){A();var i=x("zsiqfunctionalitychbox"),e=x("zsiqanalyticschbox"),t=r["cookie.save.accept"],s=r["cookie.discard.changes"],o="save",n="discard";i&&e&&(t=r["cookie.accept.all"],s=r["cookie.use.essential"],o="accept",n="decline"),a("zsiqacceptall","proptype",o),a("confirmmychoice","proptype",n),I(t,s)},q=function(){o("zsiqimagepreview").innerHTML=t,y(),p(),z()},b=function(i){i.target.getAttribute("data-type")===e?n.isFunctionality=!1:n.isAnalytics=!1,q()},g=function(i){i.target.getAttribute("data-type")===e?n.isFunctionality=!0:n.isAnalytics=!0,q()},_=function(i,e){var t="";for(var s in i)if(i.hasOwnProperty(s)){var o=i[s];o.type===e&&(t+='
'+o.name+'
'+o.purpose+'
http_cookie
'+o.ttl+"
")}return'
Name
Purpose
URL
Expiry
'+t+"
"},w=function(i,e){o(i)&&o(i).addEventListener("click",e)},T=function(i){var e=i.target.getAttribute("proptype");"decline"===e?(n={isFunctionality:!1,isAnalytics:!1},$ZSIQUtil.cookieConfig=n,Z()):"discard"===e&&(n={isFunctionality:!0,isAnalytics:!0},p(),a("zsiqacceptall","proptype","accpet"),a("confirmmychoice","proptype","decline"),I(r["cookie.accept.all"],r["cookie.use.essential"]))},I=function(i,e){o("zsiqacceptall").innerText=i,o("confirmmychoice").innerText=e},S=function(i){var e=x("zsiqfunctionalitychbox"),t=x("zsiqanalyticschbox");n={isFunctionality:e,isAnalytics:t},$ZSIQUtil.cookieConfig=n,Z()},A=function(){n={isFunctionality:x("zsiqfunctionalitychbox"),isAnalytics:x("zsiqanalyticschbox")}},x=function(i){return o(i).checked},Z=function(){o("zsiqimagepreview").remove();var i=$UTSHandler.getAPIValuesForUTS(),e=$ZSIQWidget.getWidgetObject(),t=!((!i.tracking||"off"!=i.tracking)&&e.istracking),s=JSON.parse($ZSIQWidget.getEmbedObject().pinfo.pinfo.trackingprivacyconfig);n.isAnalytics||t||2!=s?$ZSIQUtil.updateCookieForTracking(0,"2"):$ZSIQUtil.updateCookieForTracking(1,"2")},L=function(i,e){n={isFunctionality:i,isAnalytics:e}};return{init:function(i,e){for(var t=0;t\+?/g,i.lsid).replace(/\+?<@screenname@>\+?/g,i.screenname).replace(/\+?<@appid@>\+?/g,e),d[l[t].type].push(s)}},getCookieList:function(){return l},updateCookie:function(i){Object.assign(n,i)},isCookieAllowed:function(i){var e,t={functionality:"isFunctionality",analytics:"isAnalytics"},s=($ZSIQChat.getWidgetData()||{}).embedobj;s&&(e=$ZSIQLSDB.getFromLocalStorage("ZSIQ"+s.einfo.embedid+"-cookie_config"));var o=e||$ZSIQUtil.cookieConfig;if(-1!=i.indexOf("state")||-1!=i.indexOf("dragpos"))return!1;for(var n in d)if(d.hasOwnProperty(n)){if(-1!=i.indexOf("Article_")||-1!=i.indexOf("isiframeenabled")||-1!=i.indexOf("_translate"))return o.isFunctionality;if(-1!=i.indexOf("avuid"))return o.isAnalytics;if(-1!=d[n].indexOf(i))return n===c||o[t[n]]}return!0},populateUI:function(){n={isFunctionality:!0,isAnalytics:!0},r=$ZSIQWidget.getWidgetObject().i18nChatwindowKeys,s.strictlynecessary.title=r["cookie.essential"],s.strictlynecessary.subtitle=r["cookie.essential.desc"],s.functionality.title=r["cookie.performance"],s.functionality.subtitle=r["cookie.performance.desc"],s.analytics.title=r["cookie.analytics"],s.analytics.subtitle=r["cookie.analytics.desc"],s.learnmore=r["cookie.learnmore"];var i='';t||o("gdprbanner").insertAdjacentHTML("afterend",i),t=i,p(),y(),z()},handleGotit:function(){L(!0,!0)},handleDNT:function(){L(!1,!1)},closeBanner:v,cookieList:function(){return d}}}();var $ZSIQChat=$ZSIQChat||function(){var y;SIQ_FLOAT=1,SIQ_BUTTON=2,SIQ_PERSONALIZE=3,_WINDOW_REPOPULATE=!1;var D={},$={};D[SIQ_FLOAT]=["/styles/floatbuttonWIDGTHEME.css"],D[SIQ_BUTTON]=["/styles/buttonthemeWIDGTHEME.css"],D[SIQ_PERSONALIZE]=["/styles/personalizethemeWIDGTHEME.css"],$[SIQ_FLOAT]=["/js/floatbuttonWIDGTHEME.js"],$[SIQ_BUTTON]=["/salesiq/js/newbutton_SuPPdvprHPbRpuJNY3NBWapdO-AhbdGxmqbYS9hrKGX2tcC6I9sccXlVrQBN6t_j_.js"];var Q=!($[SIQ_PERSONALIZE]=["/salesiq/js/personalizewidget_EWe9WoZ5J9C2Ka7m0doYDzWUAwDm1xtHZhSMfy7J8Gxi3yBt90TvuxLeM06THap6_.js"]),e=!1,s=!1,d=!0;try{Q=_IS_PREVIEW}catch(e){}try{e=_IS_SIGNATURE_CHAT}catch(e){}var Z=function(){var e=window._STATICURLS||$ZSIQUtil.staticURL;if(e)return"https://"+e[4]+"/widget";var t=document.getElementById("zsiqscript");return t.src||t.querySelector("src")},c=function(e,t){if(null!=t.status)return e.widgetobj.status=e.widgetobj.call_status=e.embedobj.einfo.embedstatus.STATUS=t.status,e;if((5==_WIDGETTYPE||6==_WIDGETTYPE||7==_WIDGETTYPE||t.color&&window._SIQ_NEW_FLOAT)&&(e.widgetobj=t.theme||t.integprops?e.embedobj:e.embedobj.einfo.props,t.hasOwnProperty("show_brand_logo")&&(e.widgetobj=e.embedobj.homepage_configs)),t.embedstatus)e.embedobj.einfo.embedstatus=t.embedstatus;else for(var i in t)e.widgetobj[i]=t[i];return e.embedobj.einfo.embedstatus.STATUS=!t.toggleoffline,e},O=function(e,i,a,s){e.onerror=function(){var e="",t=$zohosq.nonce;"js"==s?(e=document.createElement("script")).src=a:"css"==s&&((e=document.createElement("link")).rel="stylesheet",e.href=a),t&&e.setAttribute("nonce",t),i[0].appendChild(e)}};return{init:function(){try{$ZSIQUtil.preConnectDomains(),$ZSIQChat.loadPostMessage(),y=WIDGET_DATA}catch(e){$ZSIQUtil.initializeAPIValues(),$ZSIQChat.getEmbedDetails()}},getWidgetData:function(){return y},isLivePreview:function(){try{return null!=parent.document.getElementById("preview")}catch(e){return!1}},isOnboarding:function(){return Q?window.parent._IS_ONBOARDING:window._IS_ONBOARDING},getEmbedDetails:function(){$ZSIQChat.fetchEmbedDetails()},getDomain:function(){var e="";return e||(e=location.hostname.toString().replace(/^w{3}\./,""),/^[a-zA-Z0-9-\.]+$/.test(e)||(e="")),e?location.protocol+"//"+e:""},fetchEmbedDetails:function(h){var e=Z(),t=(e=e.split("?")[0]).replace("/widget",""),i=$ZSIQUtil.staticURL;i&&i[5]&&(t="https://"+i[5]),t+="/visitor/v2/channels/website",t+="?widgetcode="+$zohosq.widgetcode,t+="&internal_channel_req=true";var v=$ZSIQUtil.getConfigFromStorage(),a="";!v||!v.last_modified||Q||this.isLivePreview()||h||(t=t+"&last_modified_time="+v.last_modified);var s=$ZSIQLSDB.get("ZLD"+$zohosq.widgetcode+"avuid");v&&v.widgetobj&&(s=$ZSIQLSDB.get("ZLD"+v.widgetobj.lsid+"avuid")),s?$ZSIQChat.avuidval=s:a+="avuid";var o=$zohosq.values&&$zohosq.values.agent;o&&(t=t+"&attender_email="+encodeURIComponent(o)),v&&v.version&&(t=t+"&version="+v.version);var n=$ZSIQUtil.getAPILanguage();n&&(t=t+"&api_language="+n);var r=$ZSIQUtil.getBrowserLanguage(),d="ZLSLANG"+$zohosq.widgetcode,c=$ZSIQLSDB.get(d);(0==n.length&&v.widgetobj&&1==v.widgetobj.langchangeviaapi||0!=n.length&&v.embedobj&&v.embedobj.lang!=n||c!=r)&&(t=t+"&language_api="+!0),r&&(t=t+"&browser_language="+r,$ZSIQLSDB.set(d,r,864e5));var l=v&&v.geodetails;$ZSIQUtil.isFetchGeoDetails()&&!l&&(a+=",geo_details");var m=this.getDomain(),g=window.document.title;m&&(t=t+"¤t_domain="+encodeURIComponent(m)),t=t+"&pagetitle="+encodeURIComponent(g).substring(0,3e3);try{t=t+"&is_signaturechat="+_IS_SIGNATURE_CHAT}catch(e){}Q&&0<_WIDGETTYPE&&_WIDGETTYPE<4&&(t=t+"&widget_type="+_WIDGETTYPE),window._SIQ_WIDGET_LIVE_PREVIEW&&(t+="&siq_widget_preview=true"),Q&&(t=t+"&is_preview="+Q),a&&(t=t+"&include_fields="+a);$ZSIQUtil.ajax(t,function(e){var t=$ZSIQUtil.parseToJSON(e);if(window._WEBSITEAPIRESPONSE=t.data,$ZSIQChat.isOnboarding()){for(var i=t.data,a=i.components,s=a.length,o=[],n=0;n(new Date).getTime()&&1==JSON.parse(e.einfo.props.issesonaltheme)[0])&&"4"==i&&!this.isPreview()&&(t.embedobj.einfo.props.color='[1,{"code":"#000000"}]'),s&&1==t.widgettype){var a=$ZSIQUtil.parseToJSON(t.widgetobj.sticker);a[1].default=1,t.widgetobj.sticker=JSON.stringify(a)}return t}catch(e){return t}},isSeasonalTheme:function(){return s},isPreview:function(){return Q},isSignatureChat:function(){return e},isAgentSpcificSignatureChat:function(){return e&&$zohosq.values.agent},updatePreviewConfig:function(){y=c(y,_MODIFIED_WIDGET_OBJ)},loadPostMessage:function(){window.addEventListener?window.addEventListener("message",$ZSIQChat.handlePostMessage,!1):window.attachEvent("onmessage",$ZSIQChat.handlePostMessage)},getScriptSource:Z,isEmbedFeatureConfEnabled:function(){return d&&-1!=location.protocol.indexOf("https")},getSubResourceIntegrityAttr:function(e){return(y||{}).embedobj.subresourceintegrity_enabled?"sha384-"+e.replace(/-/g,"+").replace(/_/g,"/"):""},handlePostMessage:function(e){try{!e.data.message||"ZOHOCLIQ-EXTN-CHECK"!==e.data.message.type&&"ZOHOCLIQ-SCEEN-SOURCE-ID"!==e.data.message.type||$ZSIQUtil.getIframe().PeerConnection.screenShareExtnSuccsess(e);var t=JSON.parse(e.data);if("zoho.salesiq.apimessage"===t.type){if(t.websiteredirection)return $ZSIQLSDB.storeInSession($zohosq.widgetcode+"zsiq_zforms_vinfo",t),void window.addEventListener("unload",function(){var e=t.visitor;e.phone=e.contactnumber,$zohosq.visitor.handleinfo(e)});var i=t.visitor;i.phone=i.contactnumber,$zohosq.visitor.handleinfo(i)}else if("zoho.salesiq.gettrackingdetails"===t.type){var a=$UTSHandler.get("_zldt");if(!a)return;var s={type:"zoho.salesiq.trackingdetails"};s.trackingdetails={uvid:a},e.source.postMessage(JSON.stringify(s),"*")}}catch(e){}},notifyOnCDNFailure:O}}();if(!$zoho.salesiq.init_called){var isdomloadhandled=!1;try{"async"!=$zoho.salesiq.mode&&($ZSIQChat.init(),isdomloadhandled=!0,$zoho.salesiq.init_called=!0)}catch(e){isdomloadhandled=!1}isdomloadhandled||($zoho.salesiq.init_called=!0,"complete"===document.readyState?$ZSIQChat.init():window.addEventListener?window.addEventListener("load",$ZSIQChat.init):window.attachEvent("onload",$ZSIQChat.init))}